import request from '@/utils/request'
// 查询列表
export function listWalmartProfitRepor(query) {
  return request({
    url: '/finance/walmartProfitReport/selectWalmartProfitReportList',
    method: 'get',
    params: query
  })
}
// 上传walmart账单总报告
export function uploadWalmartPaymentReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartPaymentReport',
    method: 'post',
    data: data
  })
}
// 上传walmart仓储费账单
export function uploadWalmartStorageFeeReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartStorageFeeReport',
    method: 'post',
    data: data
  })
}
// 上传walmart调整费账单
export function uploadWalmartAdjustmentsReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartAdjustmentsReport',
    method: 'post',
    data: data
  })
}
// 上传walmart广告费账单
export function uploadWalmartProductAdvertisingReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartProductAdvertisingReport',
    method: 'post',
    data: data
  })
}
// 上传walmart库存对账单
export function uploadWalmartInventoryReconciliationReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartInventoryReconciliationReport',
    method: 'post',
    data: data
  })
}
// walmart库存账单已对账
export function uploadWalmartInventoryLoadingReconciliationReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartInventoryLoadingReconciliationReport' ,
    method: 'post',
    data: data
  })
}
// 上传walmart pfd账单
export function uploadWalmartPdfReport(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartPdfReport',
    method: 'post',
    data: data
  })
}
// 标记库存已对账
export function uploadWalmartProfitReportInentrotyStatus(wprId) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartProfitReportInentrotyStatus/' +wprId ,
    method: 'post'
  })
}
// walmart账单标记已收款
export function uploadWalmartProfitReportStatus(wprId) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartProfitReportStatus/' +wprId ,
    method: 'post'
  })
}
// walmart匹配列表（成本、头程）
export function listShipmentMatch(data) {
  return request({
    url: '/finance/walmartProfitReport/listShipmentMatch',
    method: 'post',
    data: data
  })
}
// 上传二次销售商品
export function uploadWalmartShipmentStockAgain(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadWalmartShipmentStockAgain',
    method: 'post',
    data: data
  })
}
// 初始化数据
export function uploadInitData(data) {
  return request({
    url: '/finance/walmartProfitReport/uploadInitData',
    method: 'post',
    data: data
  })
}
// 更新关联货件配对表，匹配表，账单头程
export function updateShipmentStockFirstLeg(stockId) {
  return request({
    url: '/finance/walmartProfitReport/updateShipmentStockFirstLeg/' +stockId ,
    method: 'post'
  })
}
